﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LDSP.BRL
{
    public class CodificationValidateResult : BYFW.BOL.BaseEntity
    {
        protected string m_codname = string.Empty;
        protected bool m_isExisted = false;
        protected bool m_isValid = false;

        public CodificationValidateResult() { }

        public string CodName
        {
            get
            {
                return m_codname;
            }
            set
            {
                m_codname = value;
            }
        }

        public bool IsExisted
        {
            get
            {
                return m_isExisted;
            }
            set
            {
                m_isExisted = value;
            }
        }

        public bool IsValid
        {
            get
            {
                return m_isValid;
            }
            set
            {
                m_isValid = value;
            }
        }

        public bool GetProperties(System.Data.DataRow record)
        {
            m_codname = this.GetStringValue(record, "name");
            m_isExisted = this.GetBoolValue(record, "isExisted");
            m_isValid = this.GetBoolValue(record, "isValid");

            return true;
        }
    }
}
